﻿//using Xamarin.Forms;

//namespace Games.Common
//{
//    public class LineColorButton : Button
//    {
//        public static readonly BindableProperty StartColorProperty = BindableProperty.Create("StartColor", typeof(Color), typeof(LineColorButton), defaultValueCreator: t => t.GetValue(BackgroundColorProperty));
//        public static readonly BindableProperty EndColorProperty = BindableProperty.Create("EndColor", typeof(Color), typeof(LineColorButton), Color.Silver);
//        public static readonly BindableProperty IsHorizontalProperty = BindableProperty.Create("IsHorizontal", typeof(bool), typeof(LineColorButton), false);
//        public static readonly BindableProperty MiddleRateProperty = BindableProperty.Create("MiddleRate", typeof(double), typeof(LineColorButton), 0.75);

//        public Color StartColor
//        {
//            get { return (Color)GetValue(StartColorProperty); }
//            set { SetValue(StartColorProperty, value); }
//        }
//        public Color EndColor
//        {
//            get { return (Color)GetValue(EndColorProperty); }
//            set { SetValue(EndColorProperty, value); }
//        }
//        public bool IsHorizontal
//        {
//            get { return (bool)GetValue(IsHorizontalProperty); }
//            set { SetValue(IsHorizontalProperty, value); }
//        }
//        public double MiddleRate
//        {
//            get { return (double)GetValue(MiddleRateProperty); }
//            set { SetValue(MiddleRateProperty, value); }
//        }
//    }
//}